package com.ioc.service;

import com.ioc.dao.BookDao;
import com.ioc.dao.UserDao;
import com.ioc.dao.impl.UserDaoImpl;

public class UserService {



    private UserDao userDao;

    private BookDao bookDao;


    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    public void setBookDao(BookDao bookDao) {
        this.bookDao = bookDao;
    }

    public void save(){
        userDao.save();
        bookDao.save();
    }


}
